package com.cucn.eduorder.client;

import com.cucn.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author KouChaoJie
 * @since: 2021/10/13 15:48
 */
@Component
@FeignClient("service-ucenter")
public interface UcenterClient {
    /**
     * 根据用户id获取到用户信息
     *
     * @param id 用户id
     * @return 获取到的用于远程调用用户对象
     */
    @PostMapping("/educenter/member/getUserInfoOrder/{id}")
    UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
}
